package com.class05.m_innerclass.a;

public interface USB {
    public abstract void open();
}

class TestF {
    public static void main(String[] args) {
        USB usb = new USB() {
            public void open() {
                System.out.println("open");
            }

        };
        usb.open();
        System.out.println("-------------------");
//        lambda表达式
        USB usb1 = () ->
                System.out.println("open");
        usb1.open();

    }
}
